﻿using NPOI.SS.Formula.Functions;
using System.Collections.Generic;
using System.Text.Json.Serialization;

namespace TyMES.Communication.Response
{
    public class GetChildLine
    {
        [JsonPropertyName("code")]
        public string Code { get; set; }
        [JsonPropertyName("data")]
        public GetChildLineResponse Data { get; set; }
        [JsonPropertyName("fail")]
        public bool Fail { get; set; }
        [JsonPropertyName("mesg")]
        public string Mesg { get; set; }
        [JsonPropertyName("success")]
        public bool Success { get; set; }
        [JsonPropertyName("time")]
        public string Time { get; set; }


    }
    public class GetChildLineResponse
    {
        [JsonPropertyName("materialCode")]
        public string MaterialCode { get; set; }

        [JsonPropertyName("materialList")]
        public List<MaterialProperty> MaterialProperties { get; set; }
        [JsonPropertyName("materialName")]
        public string MaterialName { get; set; }
        [JsonPropertyName("materialVersion")]
        public string MaterialVersion { get; set; }
    }
    public class MaterialProperty
    {
        [JsonPropertyName("customProperty")]
        public string CustomProperty { get; set; }

        [JsonPropertyName("propertyDescribe")]
        public string PropertyDescribe { get; set; }

        [JsonPropertyName("propertyValue")]
        public string PropertyValue { get; set; }
    }
}
